{template 'common/header'}
<link rel="stylesheet" type="text/css" media="all" href="{MODULE_URL}/template/style/css/emoji.css">
<div class="main">
	<div style="padding:15px;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th>用户昵称</th>
					<th>发表时间</th>
					<th>审核状态</th>
					<th>匿名状态</th>
					<th>类型</th>
					<th>内容</th>
					<th class="norightborder">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
					<tr>
						<td>{php echo emoji_unified_to_html($row['nickname'])}</td>
						<td>{php echo date('Y-m-d H:i:s',$row['createtime'])}</td>
						{php $config = $this->module['config'];$config['ischeck'] = $config['ischeck']?$config['ischeck']:0}
						<td>
						{if $config['ischeck']==0}无需审核
						{else if $row['isok']==0}未被审核{else}已被审核{/if}</td>
						<td>{if $row['limit']==1}匿名发布{else}昵称发布{/if}</td>
						<td>{if $row['parentid']==0}主题{else}回复{/if}</td>
						<td>{php echo emoji_unified_to_html($row['content'])}</td>
						<td class="norightborder">
							<a class="btn" rel="tooltip"  href="{php echo $this->createWeburl('Talklist', array('id'=>$row['id'],'foo'=>'delete'))}" onclick="return confirm('此操作不可恢复，确认删除？');return false;" title="删除"><i class="glyphicon glyphicon-remove"></i></a>
						{if $row['isok']==0}
							<a class="btn" rel="tooltip"  href="{php echo $this->createWeburl('Talklist', array('id'=>$row['id'],'foo'=>'change','doit'=>1))}" onclick="return confirm('确认操作?');return false;" title="通过"><i class="glyphicon glyphicon-lock"></i></a>
							{else}
							<a class="btn" rel="tooltip"  href="{php echo $this->createWeburl('Talklist', array('id'=>$row['id'],'foo'=>'change','doit'=>0))}" onclick="return confirm('确认操作?');return false;" title="禁止"><i class="glyphicon glyphicon-log-in"></i></a>
 						{/if}
 						</td>
					</tr>
					{/loop} 
			</tbody>
		</table>
		{$pager}
	</div>
</div>
{template 'common/footer'}